1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */ 
28 
29 module derelict.glib.gtypes;
30 
31 import core.stdc.config;
32 
33 extern (C):
34 
35 alias char gchar;
36 alias short gshort;
37 alias c_long glong;
38 alias int gint;
39 alias int gboolean;
40 alias ubyte guchar;
41 alias ushort gushort;
42 alias c_ulong gulong;
43 alias uint guint;
44 alias float gfloat;
45 alias double gdouble;
46 alias void* gpointer;
47 alias const(void)* gconstpointer;
48 alias int function (const(void)*, const(void)*) GCompareFunc;
49 alias int function (const(void)*, const(void)*, void*) GCompareDataFunc;
50 alias int function (const(void)*, const(void)*) GEqualFunc;
51 alias void function (void*) GDestroyNotify;
52 alias void function (void*, void*) GFunc;
53 alias uint function (const(void)*) GHashFunc;
54 alias void function (void*, void*, void*) GHFunc;
55 alias void function (void*) GFreeFunc;
56 alias const(char)* function (const(char)*, void*) GTranslateFunc;
57 alias _GDoubleIEEE754 GDoubleIEEE754;
58 alias _GFloatIEEE754 GFloatIEEE754;
59 alias _GTimeVal GTimeVal;
60 
61 struct _GTimeVal
62 {
63 	glong tv_sec;
64 	glong tv_usec;
65 }
66 
67 union _GFloatIEEE754
68 {
69 	gfloat v_float;
70 	struct
71 	{
72 		guint mantissa;
73 		guint biased_exponent;
74 		guint sign;
75 	}
76 }
77 
78 union _GDoubleIEEE754
79 {
80 	gdouble v_double;
81 	struct
82 	{
83 		guint mantissa_low;
84 		guint mantissa_high;
85 		guint biased_exponent;
86 		guint sign;
87 	}
88 }